<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>行天下 看世界</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <css file="__PUBLIC__/css/category.css"/>
        <css file="__PUBLIC__/css/base.css"/>
    </head>
    <body>
        <!--现在的位置-->
            <div class="position">
                <span class="word">您现在的位置： ->  </span>
                <a href="__APP__/category/index" class="new_pos">栏目管理</a>
            </div>
        <!--具体内容-->
            <div class="cons">
                <div class="button1">
                    <a href="__CONTROL__/add_show">添加顶级栏目</a>
                </div>
                <table border="1" style="width:95%;margin-left:2%;margin-top:5px;" cellspacing="0" cellpadding='0'>
                <thead>
                    <tr style="background-color:#D4DBEE;height:30px;">
                        <th style="width:15%;">排序</th>
                        <th style="width:15%;">catid</th>
                        <th style="width:35%;">栏目名称</th>
                        <th style="width:35%;">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <list from="$category" name="$v">
                        <tr style="height:30px;text-align:center;" >
                            <td style="widtd:15%;">{$v.sort}</td>
                            <td style="widtd:15%;">{$v.catid}</td>
                            <td style="widtd:35%;text-align:left;">
                                {$v.html}
                                <if value="$v.level gt 1"> 
                                    └─<a href="__APP__/news/index/catid/{$v.catid}/mid/{$v.mid}">{$v.cname}</a>
                                <else>
                                    <a href="__APP__/news/index/catid/{$v.catid}/mid/{$v.mid}">{$v.cname}</a>
                                </if>
                            </td>
                            <td style="widtd:35%;"> 
                                <a href="__CONTROL__/add_show/catid/{$v.catid}">添加子栏目</a> |
                                <a href="__CONTROL__/edit_show/catid/{$v.catid}">修改</a> |
                                <a href="__CONTROL__/del/catid/{$v.catid}">删除</a> |
                                <a href="__APP__/news/add_show/catid/{$v.catid}">发表</a>
                            </td>
                        </tr>
                    </list>
                </tbody>
                </table>
                <span class='total'> 共有 {$hd.list.v.total} 个栏目</span>
            </div>
    </body>
</html>